package com.ryskoo.catering.coupondetail.service;

import com.ryskoo.catering.coupon.domain.CouponPO;
import com.ryskoo.catering.coupondetail.domain.CouponDetailPO;
import com.ryskoo.framework.core.bean.QueryMessageDTO;
import com.ryskoo.framework.core.service.IBasicService;

import java.util.List;

public interface ICouponDetailService extends IBasicService<CouponDetailPO> {
    List<CouponDetailPO> getListByCustomerUuidAndCouponUuids(String customerUuid, List<String> couponUuids);

    List<CouponDetailPO> getListByCustomerUuidAndCouponUuid(String customerUuid, String couponUuid);

    void receive(CouponPO coupon, String customerUuid);

    CouponDetailPO getBestCouponDetail(String customerUuid, String productUuid, double price);

    List<CouponDetailPO> getCouponDetailList(String customerUuid, String productUuid, double price);

    List<CouponDetailPO> getVendorCouponDetailList(String customerUuid, String vendorUuid, double price);

    void used(String couponDetailUuid, String orderId);

    void used(List<String> couponDetailUuids, String orderId);
    
	public List<CouponDetailPO> queryListAndProductByCondition(QueryMessageDTO qm);
}
